<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bs-carousel-demo</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>

    <style>
        .carousel-indicators button::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 5s;
        }

        .carousel-indicators button.active::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            background-color: #89b7ff;
            transform: scaleX(1);
        }

        .carousel-indicators [data-bs-target] {
            width: 100px !important;
        }
    </style>
</head>

<body>
    <div class="w-100">
        <div id="carouselExample" class="carousel slide carousel-fade" data-bs-ride="carousel" style="height: 800px;">
            <div class="carousel-indicators">
                <button type="button" data-bs-target="#carouselExample" data-bs-slide-to="0" class=" position-relative opacity-100" aria-current="true"></button>
                <button type="button" data-bs-target="#carouselExample" data-bs-slide-to="1" class="position-relative opacity-100"></button>
                <button type="button" data-bs-target="#carouselExample" data-bs-slide-to="2" class="position-relative opacity-100"></button>
            </div>
            <div class="carousel-inner d-flex  h-100">
                <div class="carousel-item active w-100 h-100" data-bs-interval="5000">
                    <img class="h-100 w-100" src="//qn1.10soo.net/assets23/202312080943837.png" alt="">
                </div>
                <div class="carousel-item w-100 h-100" data-bs-interval="5000">
                    <img class="h-100 w-100" src="//qn1.10soo.net/assets23/202312080958082.png" alt="">
                </div>
                <div class="carousel-item w-100 h-100" data-bs-interval="5000">
                    <img class="h-100 w-100" src="//qn1.10soo.net/assets23/202312080958260.png" alt="">
                </div>
            </div>
        </div>
    </div>
    <script>
        $(() => {
            $('.carousel-indicators button:first-child').addClass('active')
        })
    </script>
</body>

</html>